﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceDog.WebApi.RestfulApiRoute.Models
{
    /// <summary>
    /// 订单类
    /// </summary>
    public class Order
    {
        /// <summary>
        /// 
        /// </summary>
        public Order()
        {
            this.OrderDate = DateTime.Now;
        }
        /// <summary>
        /// 订单id
        /// </summary>
        [DefaultValue(1)]
        public int Id { get; set; }
        /// <summary>
        /// 订单描述
        /// </summary>
        [DefaultValue("鸡腿饭 1份\n可乐 1份")]
        public string Description { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        [DefaultValue("加急")]
        public string Remark { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        [DefaultValue(typeof(DateTime))]
        public DateTime OrderDate { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        [DefaultValue(0)]
        public decimal Total { get; set; }
    }
}
